<h1><code ng:non-bindable="">Module</code>
<span class="hint">(Type in module <code ng:non-bindable="">ng</code>
)</span>
</h1>
<div><a href="http://github.com/angular/angular.js/edit/master/src/loader.js" class="improve-docs btn btn-primary">Improve
    this doc</a>

    <h2 id="Description">Description</h2>

    <div class="description">
        <div class="angular-module-page"><p>Interface for configuring angular <a
                href="api/angular.module"><code>modules</code></a>.</p></div>
    </div>
    <div class="member method"><h2 id="Methods">Methods</h2>
        <ul class="methods">
            <li><h3 id="config">config(configFn)</h3>

                <div class="config">
                    <div class="angular-module-config-page"><p>Use this method to register work which needs to be
                        performed on module loading.</p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">configFn – {Function} – </code>

                            <div class="angular-module-config-page"><p>Execute this function on module load. Useful for
                                service
                                configuration.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="constant">constant(name, object)</h3>

                <div class="constant">
                    <div class="angular-module-constant-page"><p>Because the constant are fixed, they get applied before
                        other provide methods.
                        See <a href="api/AUTO.$provide#constant"><code>$provide.constant()</code></a>.</p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-constant-page"><p>constant name</p></div>
                        </li>
                        <li><code ng:non-bindable="">object – {*} – </code>

                            <div class="angular-module-constant-page"><p>Constant value.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="controller">controller(name, constructor)</h3>

                <div class="controller">
                    <div class="angular-module-controller-page"><p>See <a
                            href="api/ng.$controllerProvider#register"><code>$controllerProvider.register()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-controller-page"><p>Controller name.</p></div>
                        </li>
                        <li><code ng:non-bindable="">constructor – {Function} – </code>

                            <div class="angular-module-controller-page"><p>Controller constructor function.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="directive">directive(name, directiveFactory)</h3>

                <div class="directive">
                    <div class="angular-module-directive-page"><p>See <a href="api/ng.$compileProvider#directive"><code>$compileProvider.directive()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-directive-page"><p>directive name</p></div>
                        </li>
                        <li><code ng:non-bindable="">directiveFactory – {Function} – </code>

                            <div class="angular-module-directive-page"><p>Factory function for creating new instance of
                                directives.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="factory">factory(name, providerFunction)</h3>

                <div class="factory">
                    <div class="angular-module-factory-page"><p>See <a href="api/AUTO.$provide#factory"><code>$provide.factory()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-factory-page"><p>service name</p></div>
                        </li>
                        <li><code ng:non-bindable="">providerFunction – {Function} – </code>

                            <div class="angular-module-factory-page"><p>Function for creating new instance of the
                                service.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="filter">filter(name, filterFactory)</h3>

                <div class="filter">
                    <div class="angular-module-filter-page"><p>See <a href="api/ng.$filterProvider#register"><code>$filterProvider.register()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-filter-page"><p>Filter name.</p></div>
                        </li>
                        <li><code ng:non-bindable="">filterFactory – {Function} – </code>

                            <div class="angular-module-filter-page"><p>Factory function for creating new instance of
                                filter.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="provider">provider(name, providerType)</h3>

                <div class="provider">
                    <div class="angular-module-provider-page"><p>See <a href="api/AUTO.$provide#provider"><code>$provide.provider()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-provider-page"><p>service name</p></div>
                        </li>
                        <li><code ng:non-bindable="">providerType – {Function} – </code>

                            <div class="angular-module-provider-page"><p>Construction function for creating new instance
                                of the service.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="run">run(initializationFn)</h3>

                <div class="run">
                    <div class="angular-module-run-page"><p>Use this method to register work which should be performed
                        when the injector is done
                        loading all modules.</p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">initializationFn – {Function} – </code>

                            <div class="angular-module-run-page"><p>Execute this function after injector creation.
                                Useful for application initialization.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="service">service(name, constructor)</h3>

                <div class="service">
                    <div class="angular-module-service-page"><p>See <a href="api/AUTO.$provide#service"><code>$provide.service()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-service-page"><p>service name</p></div>
                        </li>
                        <li><code ng:non-bindable="">constructor – {Function} – </code>

                            <div class="angular-module-service-page"><p>A constructor function that will be
                                instantiated.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
            <li><h3 id="value">value(name, object)</h3>

                <div class="value">
                    <div class="angular-module-value-page"><p>See <a href="api/AUTO.$provide#value"><code>$provide.value()</code></a>.
                    </p></div>
                    <h4 id="Parameters">Parameters</h4>
                    <ul class="parameters">
                        <li><code ng:non-bindable="">name – {string} – </code>

                            <div class="angular-module-value-page"><p>service name</p></div>
                        </li>
                        <li><code ng:non-bindable="">object – {*} – </code>

                            <div class="angular-module-value-page"><p>Service instance object.</p></div>
                        </li>
                    </ul>
                </div>
            </li>
        </ul>
    </div>
    <div class="member property"><h2 id="Properties">Properties</h2>
        <ul class="properties">
            <li><h3 id="name">name</h3>

                <div class="name"><h4 id="Returns">Returns</h4>

                    <div class="returns"><code ng:non-bindable="">{string}</code>
                        –
                        <div class="angular-module-name-page"><p>Name of the module.</p></div>
                    </div>
                </div>
            </li>
            <li><h3 id="requires">requires</h3>

                <div class="requires">
                    <div class="angular-module-requires-page"><p>Holds the list of modules which the injector will load
                        before the current module is loaded.</p></div>
                    <h4 id="Returns">Returns</h4>

                    <div class="returns"><code ng:non-bindable="">{Array.&lt;string&gt;}</code>
                        –
                        <div class="angular-module-requires-page"><p>List of module names which must be loaded before
                            this module.</p></div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
